<%@ page import="com.qf.entity.StuInfo" %>
<%@ page import="java.time.LocalDateTime" %>
<%@ page import="java.time.LocalDate" %><%--
  Created by IntelliJ IDEA.
  User: a1275872671
  Date: 2024/4/30
  Time: 12:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改个人信息</title>
</head>
<body>
<form action="UpdateServlet" method="post" enctype="application/x-www-form-urlencoded">
    <table>
        <tr>
            <td>编号</td>
            <td>
                ${stuInfo.id}
                <input type="hidden" name="id" value="${stuInfo.id}">
            </td>
        </tr>
        <tr>
            <td>姓名</td>
            <td>
                <input type="text" name="stuName" value="${stuInfo.stuName}">
            </td>
        </tr>
        <tr>
            <td>学号</td>
            <td>
                <input type="text" name="shuno" value="${stuInfo.shuno}">
            </td>
        </tr>
        <tr>
            <td>新密码</td>
            <td>
                <input type="password" name="pwd" value="${stuInfo.pwd}">
            </td>
        </tr>
        <tr>
            <td>身份证号</td>
            <td>
                <input type="text" name="idcard" value="${stuInfo.idcard}">
            </td>
        </tr>
        <tr>
            <td>入学时间</td>
            <td>
                <%
                    StuInfo book=(StuInfo) request.getAttribute("book");
                    LocalDateTime localDateTime= LocalDateTime.now();
                    LocalDate localDate=localDateTime.toLocalDate();
                    pageContext.setAttribute("localDate",localDate);
                %>
                <input type="text" name="startDate" value="${localDate}">
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="修改">

            </td>
        </tr>
    </table>
    </form>
</body>
</html>
